import "@nomicfoundation/hardhat-toolbox";
type Config = import("hardhat/config").HardhatUserConfig;
import dotenv from "dotenv";
dotenv.config();
const BSC_TEST = process.env.NEXT_PUBLIC_BSC_TEST_RPC as string;
const PRIVATE_KEY = process.env.NEXT_PUBLIC_PRIVATE_KEY as string;

const config: Config = {
  solidity: "0.8.26",
  networks: {

    hardhat: {
      chainId: 31337
    },
    bscTestnet: {
      url: BSC_TEST,
      accounts: [PRIVATE_KEY],
      chainId: 97, // BSC 测试网链 ID
      gasPrice: 20000000000, // 可选：设置 gasPrice
    },

    // polygon_amoy:{
    //   url: process.env.NEXT_PUBLIC_POYGOU_MUMBAI_RPC,
    //   accounts:[`${process.env.NEXT_PUBLIC_PRIVATE_KEY}`]
    // }
  }
};

export default config;
